package de.recipeminer.models.generic;


import com.google.common.collect.Sets;
import de.recipeminer.models.UnitType;

import java.util.Set;

public abstract class AbstractUnit extends AnnotatableObject{
    String name;
    Set<String> alternativeNames;
    UnitType type;

    protected AbstractUnit(String name, Set<String> alternativeNames, UnitType type) {
        this.name = name;
        this.alternativeNames = alternativeNames;
        this.type = type;
    }

    protected AbstractUnit(String name, UnitType type) {
        this.name = name;
        this.type = type;
        this.alternativeNames = Sets.newHashSet();
    }

    public String getName() {
        return name;
    }

    public Set<String> getAlternativeNames() {
        return alternativeNames;
    }

    public UnitType getType() {
        return type;
    }
}
